package net.osweb.crm.modules.sales.bean;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Salesorder entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sales_salesorder")
public class SalesOrder implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 7699723414730957568L;

	private Integer id;
	private Integer userid;
	private String subject;
	private String productIds;
	private Integer contactId;
	private String contactType;
	private String potentialName;
	private Timestamp createtime;
	private String quoteName;
	private String purchaseOrder;
	private String stylenumber;
	private String stylename;
	private Timestamp dueDate;
	private String carrier;
	private String pending;
	private Integer status;
	private Integer billingstate;
	private String salescommission;
	private String exciseduty;
	private String accountname;
	private String assignedto;
	private String billingaddress;
	private String shippingaddress;
	private String billingPobox;
	private String shippingPobox;
	private String billingcity;
	private String shippingcity;
	private String shippingstate;
	private String billingpostalcode;
	private String shippingpostalcode;
	private String billingcountry;
	private String shippingcountry;
	private Integer productPrice;
	private String conditions;
	private Integer isavailability;
	private Timestamp userviewtime;
	private String comment;

	// Constructors

	/** default constructor */
	public SalesOrder() {
	}

	/** minimal constructor */
	public SalesOrder(Timestamp dueDate) {
		this.dueDate = dueDate;
	}

	/** full constructor */
	public SalesOrder(Integer userid, String subject, String productIds,
			Integer contactId, String contactType, String potentialName,
			Timestamp createtime, String quoteName, String purchaseOrder,
			String stylenumber, String stylename, Timestamp dueDate,
			String carrier, String pending, Integer status,
			Integer billingstate, String salescommission, String exciseduty,
			String accountname, String assignedto, String billingaddress,
			String shippingaddress, String billingPobox, String shippingPobox,
			String billingcity, String shippingcity, String shippingstate,
			String billingpostalcode, String shippingpostalcode,
			String billingcountry, String shippingcountry,
			Integer productPrice, String conditions, Integer isavailability,
			Timestamp userviewtime, String comment) {
		this.userid = userid;
		this.subject = subject;
		this.productIds = productIds;
		this.contactId = contactId;
		this.contactType = contactType;
		this.potentialName = potentialName;
		this.createtime = createtime;
		this.quoteName = quoteName;
		this.purchaseOrder = purchaseOrder;
		this.stylenumber = stylenumber;
		this.stylename = stylename;
		this.dueDate = dueDate;
		this.carrier = carrier;
		this.pending = pending;
		this.status = status;
		this.billingstate = billingstate;
		this.salescommission = salescommission;
		this.exciseduty = exciseduty;
		this.accountname = accountname;
		this.assignedto = assignedto;
		this.billingaddress = billingaddress;
		this.shippingaddress = shippingaddress;
		this.billingPobox = billingPobox;
		this.shippingPobox = shippingPobox;
		this.billingcity = billingcity;
		this.shippingcity = shippingcity;
		this.shippingstate = shippingstate;
		this.billingpostalcode = billingpostalcode;
		this.shippingpostalcode = shippingpostalcode;
		this.billingcountry = billingcountry;
		this.shippingcountry = shippingcountry;
		this.productPrice = productPrice;
		this.conditions = conditions;
		this.isavailability = isavailability;
		this.userviewtime = userviewtime;
		this.comment = comment;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "userid")
	public Integer getUserid() {
		return this.userid;
	}

	public void setUserid(Integer userid) {
		this.userid = userid;
	}

	@Column(name = "subject", length = 200)
	public String getSubject() {
		return this.subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	@Column(name = "productIds")
	public String getProductIds() {
		return this.productIds;
	}

	public void setProductIds(String productIds) {
		this.productIds = productIds;
	}

	@Column(name = "contactId")
	public Integer getContactId() {
		return this.contactId;
	}

	public void setContactId(Integer contactId) {
		this.contactId = contactId;
	}

	@Column(name = "contactType", length = 200)
	public String getContactType() {
		return this.contactType;
	}

	public void setContactType(String contactType) {
		this.contactType = contactType;
	}

	@Column(name = "potentialName", length = 200)
	public String getPotentialName() {
		return this.potentialName;
	}

	public void setPotentialName(String potentialName) {
		this.potentialName = potentialName;
	}

	@Column(name = "createtime", length = 19)
	public Timestamp getCreatetime() {
		return this.createtime;
	}

	public void setCreatetime(Timestamp createtime) {
		this.createtime = createtime;
	}

	@Column(name = "quoteName", length = 200)
	public String getQuoteName() {
		return this.quoteName;
	}

	public void setQuoteName(String quoteName) {
		this.quoteName = quoteName;
	}

	@Column(name = "purchaseOrder", length = 200)
	public String getPurchaseOrder() {
		return this.purchaseOrder;
	}

	public void setPurchaseOrder(String purchaseOrder) {
		this.purchaseOrder = purchaseOrder;
	}

	@Column(name = "stylenumber")
	public String getStylenumber() {
		return this.stylenumber;
	}

	public void setStylenumber(String stylenumber) {
		this.stylenumber = stylenumber;
	}

	@Column(name = "stylename")
	public String getStylename() {
		return this.stylename;
	}

	public void setStylename(String stylename) {
		this.stylename = stylename;
	}

	@Column(name = "dueDate", nullable = false, length = 19)
	public Timestamp getDueDate() {
		return this.dueDate;
	}

	public void setDueDate(Timestamp dueDate) {
		this.dueDate = dueDate;
	}

	@Column(name = "carrier", length = 200)
	public String getCarrier() {
		return this.carrier;
	}

	public void setCarrier(String carrier) {
		this.carrier = carrier;
	}

	@Column(name = "pending", length = 200)
	public String getPending() {
		return this.pending;
	}

	public void setPending(String pending) {
		this.pending = pending;
	}

	@Column(name = "status")
	public Integer getStatus() {
		return this.status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	@Column(name = "billingstate")
	public Integer getBillingstate() {
		return this.billingstate;
	}

	public void setBillingstate(Integer billingstate) {
		this.billingstate = billingstate;
	}

	@Column(name = "salescommission", length = 200)
	public String getSalescommission() {
		return this.salescommission;
	}

	public void setSalescommission(String salescommission) {
		this.salescommission = salescommission;
	}

	@Column(name = "exciseduty", length = 200)
	public String getExciseduty() {
		return this.exciseduty;
	}

	public void setExciseduty(String exciseduty) {
		this.exciseduty = exciseduty;
	}

	@Column(name = "accountname", length = 200)
	public String getAccountname() {
		return this.accountname;
	}

	public void setAccountname(String accountname) {
		this.accountname = accountname;
	}

	@Column(name = "assignedto", length = 200)
	public String getAssignedto() {
		return this.assignedto;
	}

	public void setAssignedto(String assignedto) {
		this.assignedto = assignedto;
	}

	@Column(name = "billingaddress", length = 200)
	public String getBillingaddress() {
		return this.billingaddress;
	}

	public void setBillingaddress(String billingaddress) {
		this.billingaddress = billingaddress;
	}

	@Column(name = "shippingaddress", length = 200)
	public String getShippingaddress() {
		return this.shippingaddress;
	}

	public void setShippingaddress(String shippingaddress) {
		this.shippingaddress = shippingaddress;
	}

	@Column(name = "billingPObox", length = 200)
	public String getBillingPobox() {
		return this.billingPobox;
	}

	public void setBillingPobox(String billingPobox) {
		this.billingPobox = billingPobox;
	}

	@Column(name = "shippingPObox", length = 200)
	public String getShippingPobox() {
		return this.shippingPobox;
	}

	public void setShippingPobox(String shippingPobox) {
		this.shippingPobox = shippingPobox;
	}

	@Column(name = "billingcity", length = 200)
	public String getBillingcity() {
		return this.billingcity;
	}

	public void setBillingcity(String billingcity) {
		this.billingcity = billingcity;
	}

	@Column(name = "shippingcity", length = 200)
	public String getShippingcity() {
		return this.shippingcity;
	}

	public void setShippingcity(String shippingcity) {
		this.shippingcity = shippingcity;
	}

	@Column(name = "shippingstate", length = 200)
	public String getShippingstate() {
		return this.shippingstate;
	}

	public void setShippingstate(String shippingstate) {
		this.shippingstate = shippingstate;
	}

	@Column(name = "billingpostalcode", length = 200)
	public String getBillingpostalcode() {
		return this.billingpostalcode;
	}

	public void setBillingpostalcode(String billingpostalcode) {
		this.billingpostalcode = billingpostalcode;
	}

	@Column(name = "shippingpostalcode", length = 200)
	public String getShippingpostalcode() {
		return this.shippingpostalcode;
	}

	public void setShippingpostalcode(String shippingpostalcode) {
		this.shippingpostalcode = shippingpostalcode;
	}

	@Column(name = "billingcountry", length = 200)
	public String getBillingcountry() {
		return this.billingcountry;
	}

	public void setBillingcountry(String billingcountry) {
		this.billingcountry = billingcountry;
	}

	@Column(name = "shippingcountry", length = 200)
	public String getShippingcountry() {
		return this.shippingcountry;
	}

	public void setShippingcountry(String shippingcountry) {
		this.shippingcountry = shippingcountry;
	}

	@Column(name = "productPrice")
	public Integer getProductPrice() {
		return this.productPrice;
	}

	public void setProductPrice(Integer productPrice) {
		this.productPrice = productPrice;
	}

	@Column(name = "conditions", length = 200)
	public String getConditions() {
		return this.conditions;
	}

	public void setConditions(String conditions) {
		this.conditions = conditions;
	}

	@Column(name = "isavailability")
	public Integer getIsavailability() {
		return this.isavailability;
	}

	public void setIsavailability(Integer isavailability) {
		this.isavailability = isavailability;
	}

	@Column(name = "userviewtime", length = 19)
	public Timestamp getUserviewtime() {
		return this.userviewtime;
	}

	public void setUserviewtime(Timestamp userviewtime) {
		this.userviewtime = userviewtime;
	}

	@Column(name = "comment")
	public String getComment() {
		return this.comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

}